package com.example.apiversioncontroldemo.util.vcon;

import org.springframework.core.annotation.AliasFor;

import java.lang.annotation.*;

/**
 * @author chen.cr
 * @since 2023/10/18
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ApiVersion {

    @AliasFor("version")
    int value() default 0;

    @AliasFor("value")
    int version() default 0;

    String description() default "";

}
